<?php

namespace App\Models;

use App\Enums\TokenStatus;
use BenSampo\Enum\Traits\CastsEnums;

/**
 * @mixin IdeHelperBlindBoxItem
 */
class BlindBoxItem extends BaseModel
{
    use CastsEnums;

    protected $casts = [
        'status' => TokenStatus::class,
    ];

    public function product()
    {
        return $this->belongsTo(Product::class, 'product_id');
    }

    public function product_token()
    {
        return $this->belongsTo(ProductToken::class);
    }
}
